package net.tbao.authService.fegin;

import net.tbao.authService.vo.SocialUserVo;
import net.tbao.authService.vo.UserLoginVo;
import net.tbao.authService.vo.UserRegistVo;
import net.tbao.common.utils.R;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("taobao-member")
public interface MenberFeginService {

    /**
     * 远程调用注册功能
     * @param vo
     * @return
     */
    @RequestMapping("/member/member/regist")
    R regist(@RequestBody UserRegistVo vo);

    /**
     * 远程调用登录功能
     * @param vo
     * @return
     */
    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);

    /**
     * 远程调用第三方社交登录
     * @param vo
     * @return
     */
    @PostMapping("/member/member/oauth2/login")
    R oauth2Login(@RequestBody SocialUserVo vo);
}
